﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyThietBi.DAL.Models;
using QuanLyThietBi.DAL;


namespace QuanLyThietBi.BLL
{
    public class LoaiThietBiBO
    {
        public List<LOAITHIETBI> GetAllLoaiThietBi() 
        {
            LoaiThietBiDAO loaithietbidao = new LoaiThietBiDAO();
            return loaithietbidao.GetAllLoaiThietBi();
        }

        public int SaveLoaiThietBi(LOAITHIETBI tb)
        {
            LoaiThietBiDAO tbDAO = new LoaiThietBiDAO();
            return tbDAO.SaveLoaiThietBi(tb);
        }

        public string GetLoaiThietBiById(int id)
        {
            LoaiThietBiDAO tbDAO = new LoaiThietBiDAO();
            return tbDAO.GetLoaiThietBiById(id);
        }
    }
}
